<?php

namespace Xrfg\Api\Consume\Models;

use Illuminate\Database\Eloquent\Model;
use Xrfg\Core\Trading\Account\Models\Coin;
use Xrfg\Core\User\Models\User;

class ConsumeAccounts extends Model
{
    public $type;
    public $action_id;

    use ConsumeAccountLogHelper;

    public $timestamps = false;

    protected $table = 'consume_accounts';

    protected $fillable = ['coin_id', 'user_id'];

    public function coin()
    {
        return $this->hasOne(Coin::class, 'id', 'coin_id');
    }

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
